//
//  CNBBSListViewModel.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2018/5/29.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import "BaseViewModel.h"
#import "CNBBSNetManager.h"

@interface CNBBSListViewModel : BaseViewModel
/** 返回个数 */
@property (nonatomic)NSInteger rowNumber;

@property (nonatomic,assign) NSInteger code;

@property (nonatomic,strong) NSString *message;

/**
 *  判断是否是最大页数
 *
 *
 */
- (BOOL)isHasMore;

@property (nonatomic, assign) NSInteger page;

/**  */
-(BOOL)containImageForRow:(NSInteger)row;

/**  */
-(NSString *)parentForumForRow:(NSInteger)row;

/**  */
-(NSString *)postIdForRow:(NSInteger)row;

/**  */
-(NSInteger)statusForRow:(NSInteger)row;

/**标题  */
-(NSString *)titleForRow:(NSInteger)row;

/**  */
-(NSString *)forumForRow:(NSInteger)row;

/**  */
-(BOOL)isExpiredForRow:(NSInteger)row;

/**  */
-(NSInteger)floorForRow:(NSInteger)row;

/**昵称  */
-(NSString *)nicknameForRow:(NSInteger)row;

/**  */
-(NSString *)forumUrlnameForRow:(NSInteger)row;

/**分数  */
-(NSString *)scoreForRow:(NSInteger)row;

/**  */
-(BOOL)isDiggedForRow:(NSInteger)row;

/**  */
-(BOOL)isBuryedForRow:(NSInteger)row;

/**是否顶  */
-(BOOL)isTopForRow:(NSInteger)row;

/**  */
-(NSString *)IdForRow:(NSInteger)row;

/**  */
-(NSString *)parentForumUrlnameForRow:(NSInteger)row;

/**是否精  */
-(BOOL)isRecommendForRow:(NSInteger)row;

/**回复数  */
-(NSString *)postCountForRow:(NSInteger)row;

/**  */
-(NSString *)lastPostCreatedAtForRow:(NSInteger)row;

/**  */
-(NSString *)viewCountForRow:(NSInteger)row;

/**摘要  */
-(NSString *)introductionForRow:(NSInteger)row;

/**时间  */
-(NSString *)createdAtForRow:(NSInteger)row;

/**用户名  */
-(NSString *)usernameForRow:(NSInteger)row;

/**头像  */
-(NSURL *)avatarForRow:(NSInteger)row;


#pragma mark - 论坛列表
- (void)refreshBBSListDataWithTocipType:(NSString *)tocipType CompletionHandle:(CompletionHandle)completionHandle;

- (void)getMoreBBSListDataWithTocipType:(NSString *)tocipType CompletionHandle:(CompletionHandle)completionHandle;
@end
